package com.probox.common.entity.domain.product.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.utils.StringUtils;
import lombok.Data;

import java.util.Date;

@Data
public class ProductLogVo {
    private String productName;
    private String valuesDesc;
    private String operateType;
    private String detailInfo;
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String carouselImg;

    public String getCarouselImgOne() {
        if(!StringUtils.isEmpty(carouselImg)){
            String[] split = carouselImg.split(",");
            return split[0];
        }
        return "";
    }


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getValuesDesc() {
        return valuesDesc;
    }

    public void setValuesDesc(String valuesDesc) {
        this.valuesDesc = valuesDesc;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getDetailInfo() {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo) {
        this.detailInfo = detailInfo;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCarouselImg() {
        return carouselImg;
    }

    public void setCarouselImg(String carouselImg) {
        this.carouselImg = carouselImg;
    }
}
